// 首页手机端样式
@import '@/styles/common/variables.scss';
.main .home {
  @include respond('768'){
    padding-bottom: 40px;
    .product{
      width: 100%;
      min-width: 0;
      .title{
        padding: 32px 0 12px;
        font-size: 20px;
      }
      .productContainer{
        width: 100%;
        padding: 0 20px;
        div.card_product{
          width: calc(100%);
          height: 100%;
          margin-left: 0;
          margin-bottom: 0;
          text-align: center;
          margin-bottom: 20px;
          padding: 0;
          display: flex;
          flex-direction: column;
          flex-flow: column-reverse;
          &:nth-of-type(2n){
            margin-left: 0;
          }
          &:nth-of-type(2n-1){
            margin-right: 0;
          }
          .product_image{
            width: 67%;
            padding-bottom: 67%;
            margin: 0 auto;
            margin-bottom: 8px;
          }
          .product_content{
            width: 100%;
            margin-left: 0;
            padding-bottom: 0;
            height: auto;
            div{
              position: relative;
              padding: 0 16px;
              text-align: center;
              >p.first_title, 
              >p.subtitle{
             
                width: 100%;

              }
              >p.first_title{
                padding-top: 20px;
                font-size: 18px;
              }
              
              >p.subtitle{
                padding-top: 8px;
                padding-bottom: 0;
                font-size: 14px;
                margin-top: 0;
              }
              .readMore{
                margin-top: 16px;
                margin-left: 0;
                margin-bottom: 8px;
                width: 100%;
                span{
                  font-size: 14px;
                }
                i{
                  width: 32px;
                  height: 20px;
                  &::before{
                    line-height: 18px;
                  }
                }
              }
            }

          }

        

        }
      }
      
    }
    .explore{
      margin: 0 auto 24px;
      .swiper-container{
        width: calc(100vw - 40px);
      }
      .exploreItem {
        margin-right: 0;
        .el-image{
          height: calc((100vw - 40px) *3/4);
        }
        > div > div:not(.el-image) > p{
          font-size: 16px;
          min-height: auto;
          &.subTitle{
            margin-top: 3%;
          }
        }
      }
      .el-carousel__arrow{
        width: 36px;
        height: 36px;
        i {
          font-size: 16px;
          margin-top: 4px;
        }
      }

    }
       // banner
    .banner_container{
  
      .swiper-container.banner {
        .el-carousel__arrow{
          width: 36px;
          height: 36px;
          display: none;
          i{
            font-size: 16px;
            margin-top: 4px;
          }
        }
        .swiper-slide {
          img{
            object-fit: cover;
          }
          .title_con{
          
            .title{
              text-align: center;
              left: 0 !important;
              padding-right: 0 !important;
              width: 80% !important;
              margin: auto;
              top: 0 !important;
              margin-top: calc(10% + 56px);
              padding: 0;
              line-height: 1.4;
            }
            .subTitle{
              text-align: center;
              left: 0 !important;
              padding-right: 0 !important;
              width: 80% !important;
              margin: auto;
              top: 0 !important;
              margin-top: 6px;
              padding: 0;
              line-height: 1.4;
            }
          }
        }

    
        .view_container{
          bottom:  72px;
          text-align: center;
          position: absolute;
          width: 100%;
          >.viewAll{
            position: relative;
            display: inline-block;
          }
        }
        .el-carousel__container{
          .el-carousel__item{
            .el-image{
              img{
                object-fit: cover ;
              }
            }
          }
        } 
      }
      .swiper_banner_btn{
        bottom: 16px;
 
   
        >div{
          padding: 4px 9px;
          border-radius: 12px;
          height: 24px;
          .swiper-pagination {
            top: -2px;
            .swiper-pagination-bullet{
              height: 6px;
              width: 6px;
              margin-right: 10px;
              top: -1px;
              &.swiper-pagination-bullet-active{
                height: 8px;
                width: 8px;
                
              }
              
            }
           
          }
          i{
            font-size: 16px;
          }
        }
      }
      p.readMore{
        display: none;
        span{
          font-size: 14px;
        }
        i{
          width: 32px;
          height: 20px;
          &::before{
            line-height: 18px;
          }
        }
      }
     
    }
 
    .socialMedia{
      width: 100%;
      margin: 20px 0px 0;
      padding:  0px;
      >div{
        width: 100%;
      }
      .swiper-slide {
        -webkit-transition: transform 1.0s;
        -moz-transition: transform 1.0s;
        -ms-transition: transform 1.0s;
        -o-transition: transform 1.0s;
        -webkit-transform: scale(0.82);
        transform: scale(0.82);
      }
      .swiper-slide-active,.swiper-slide-duplicate-active {
        -webkit-transform: scale(1);
        transform: scale(1);
      }
      .socialMediaTitle{
        font-size: 20px;
        padding-top: 16px;
        width: 100%;
      }
      .socialMediaContent{
        font-size: 14px;
        width: 100%;
        margin-bottom:  12px;
        line-height: 1.6;
        margin-top: 2px;
      }
      .swiper_socialmedia{
        .swiper-container{
          width: 100%;
          margin: 0;
        }
        .el-carousel__arrow{
          width: 32px;
          height: 32px;
          display: none;
          line-height: 32px;
          margin-top: -16px;
          i{
            font-size: 14px;
            margin-top: 9px;
          }
        }
      }
  
    }
    .swiper_special{
      width: calc(100% - 40px);
      margin: 0px 20px 0;
      padding-top: 0;
      .specialItem{
        border: none;
        .specialContent{
          padding-left: 16px;
          .special_first_title{
            font-size: 18px;
            min-height: auto;
          }
          .special_second_title{
            font-size: 14px;
            margin-bottom: 32px;
            min-height: auto;
          }
        }
      }


      .special_title{
        padding: 16px 0 12px;
        font-size: 20px;
      }
      .swiper_special_pagination{
        z-index: 10;
        display: block;
        position: absolute;
        bottom: 8px;
        width: 100%;
        text-align: center;
        left: 0;
        font-size: 0;
        .swiper-pagination-bullet{
          background-color: rgba(54, 52, 52, 0.2);
          margin-right: 10px;
          width: 6px;
          height: 6px;
          outline: none;
          &:last-of-type{
            margin-right: 0;
          }
          &.swiper-pagination-bullet-active{
            background-color: #363434;
            width: 8px;
            height: 8px;
          }
        }
      }
      .el-carousel__arrow.el-carousel__arrow--left{
        left: 10px;
      }
      .el-carousel__arrow.el-carousel__arrow--right{
        right: 10px;
      }
      .el-carousel__arrow{
        width: 32px;
        height: 32px;
        display: none;
        background-color: rgba(102, 102, 102, 0.6);
        &:hover{
          background-color: rgba(204, 204, 204, 0.6);
        }
        i{
          font-size: 14px;
          margin-top: 3px;
        }
      }
      >div{
        width: 100%;
      }
      .specialItem {
        .layer,
       .specialContent{
         display: block;
       }
      }
    }
    .module_customization{
      &.isPhoneShow{
        display: block;
        padding:  0 20px;
       }
       &.isPcShow{
         display: none;
       }
      >div.swiper-container{
        width: 100%;
        .module_item_tag{
          width: 100%;
          padding-bottom: 75%;
          margin: 0;
          .module_layer{
            display: block;
          }
          .module_item_content{
            bottom: 48px;
            padding: 0 20px;
            .first_title{
              font-size: 18px;
              margin-bottom: 8px;
              min-height: auto;
            }
            .second_title{
              font-size: 14px;
              margin-bottom: 16px;
              min-height: auto;
            }
            p.readMore{
              margin-top: 0;
              span{
                font-size: 14px;
              }
              i{
                width: 32px;
                height: 20px;
                &::before{
                  line-height: 18px;
                }
              }
            }
          }
        }
      
   
      }
      .swiper_module_btn{
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        i{
          font-size: 16px;
          margin-top: 5px;
          color: #363434;
          display: inline-block;
        }
        .swiper_module_pagination {
          text-align: center;
          bottom: 0;
          .swiper-pagination-bullet{
            background-color: rgba(54, 52, 52, 0.6);
            margin-right: 10px;
            outline: none;
            &.swiper-pagination-bullet-active{
              background-color: #363434;
            }
          }
        }
      }
    }
    p.readMore{
      i{
        border-width: 1px;
      
        &::before{
          content: "\e88f";
        }
      }
      &:hover{
        -webkit-transform: scaleX(1);
        -moz-transform: scaleX(1);
        -ms-transform: scaleX(1);
        -o-transform: scaleX(1);
        transform: scaleX(1);
        span{
          text-decoration: none;
          -webkit-transform: scaleX(1);
          -moz-transform: scaleX(1);
          -ms-transform: scaleX(1);
          -o-transform: scaleX(1);
          transform: scaleX(1);
        }
        i{
          -webkit-transform:scale(1)   translateX(6px);
          -moz-transform: scale(1)  translateX(6px);
          -ms-transform:  scale(1) translateX(0px);
          -o-transform:  scale(1) translateX(0px);
          transform:  scale(1) translateX(0px);
          &:before{
            opacity: 1;
            -webkit-transform: translateX(-50%) ;
            -moz-transform: translateX(-50%)  ;
            -ms-transform: translateX(-50%)  ;
            -o-transform: translateX(-50%)  ;
            transform: translateX(-50%) ;
            -webkit-transition: all .33s cubic-bezier(0.33,0,.67,1);
            -o-transition: all .33s cubic-bezier(0.33,0,.67,1);
            -moz-transition: all .33s cubic-bezier(0.33,0,.67,1);
            transition: all .33s cubic-bezier(0.33,0,.67,1); 
          }
          &::after{
            opacity: 0;
            -webkit-transform: translateX(0) rotateZ(-45deg);
            -moz-transform: translateX(0) rotateZ(-45deg);
            -ms-transform: translateX(0) rotateZ(-45deg);
            -o-transform: translateX(0) rotateZ(-45deg);
            transform: translateX(0) rotateZ(-45deg);
            -webkit-transition: all .33s cubic-bezier(0.33,0,.67,1) .17s;
            -o-transition: all .33s cubic-bezier(0.33,0,.67,1) .17s;
            -moz-transition: all .33s cubic-bezier(0.33,0,.67,1) .17s;
            transition: all .33s cubic-bezier(0.33,0,.67,1) .17s;
          }
        }
      }
    }
  }
}
